package com.dl.service;

import com.dl.pojo.MyFile;
import com.dl.pojo.Page;
import com.dl.pojo.vo.MyFileVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author DL
 * @create 2021-04-11 9:50
 */
@Service
public interface FileService {

    //查询总数
    int getTotal();

    //增加
    boolean addFile(MyFile myFile);

    //删除
    boolean deleteFile(int id);

    //更新
    boolean updateFile(MyFile myFile);

    //查询单个
    MyFile queryFileById(int id);

    //查询全部
    List<MyFile> queryAllFile();

    //分组统计查询
    Map<Integer, Integer> queryGroupBy();

    //分页查询
    Page<MyFile> queryFileByLimit(int currentPage, int pageSize);

    //模糊查询
    Page<MyFile> queryFileByKey(String keyWord, int currentPage, int pageSize);

    //vo查询
    Page<MyFileVo> queryFileVoByLimit(Integer tID, int currentPage, int pageSize);

}
